package Text_77;

import java.io.FileInputStream;
import java.io.IOException;

public class Code {

	public static void main(String[] args) throws IOException {
		 //文件不存在会报错,read是读取数据，读一次移动一次
        //把文件读入程序,
        FileInputStream fis = new FileInputStream("src\\Day10\\a.txt");
        //读完继续读会返回-1
//        int num1= fis.read();
//        System.out.println(num1);

        //循环读取,
        int b;
        while((b = fis.read()) != -1) {
            System.out.print((char)b);
        }
        fis.close();


	}

}
